﻿namespace Point3DProgram
{
    using System;

    public static class Point3DMath
    {
        public static double CalcDistance(Point3D first, Point3D second)
        {
            return Math.Sqrt(((first.PointX - second.PointX) * (first.PointX - second.PointX)) + ((first.PointY - second.PointY) * (first.PointY - second.PointY)) + ((first.PointZ - second.PointZ) * (first.PointZ - second.PointZ)));
        }
    }
}
